﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Fastyou.Web.Framework;
using Job.Data.Interfaces;
using Castle.Windsor;

namespace Job.Logic.Common
{
    public static class DataAccess
    {
        private static IWindsorContainer container;
        static DataAccess()
        {
            container = ContainerWebAccessorUtil.ObtainContainer();
        }

        public static IJobUserDao jobUserDao
        {
            get { return container["jobUserDao"] as IJobUserDao; }
        }

        public static ICommon commonDao
        {
            get { return container["commonDao"] as ICommon; }
        }

        public static IJobHunterDao jobHunterDao
        {
            get { return container["jobHunterDao"] as IJobHunterDao; }
        }

        public static IJobBaseContentDao jobBaseContentDao
        {
            get { return container["jobBaseContentDao"] as IJobBaseContentDao; }
        }

        public static IJobCommonDictionaryDao commonDictDao
        {
            get { return container["commonDictDao"] as IJobCommonDictionaryDao; }
        }

        public static IJobCompanyInfoDao companyInfoDao
        {
            get { return container["companyInfoDao"] as IJobCompanyInfoDao; }
        }

        public static IJobLevelDictionaryDao levelDictDao
        {
            get { return container["levelDictDao"] as IJobLevelDictionaryDao; }
        }

        public static IJobPersonEduDao personEduDao
        {
            get { return container["personEduDao"] as IJobPersonEduDao; }
        }

        public static IJobPersonInfoDao personInfoDao
        {
            get { return container["personInfoDao"] as IJobPersonInfoDao; }
        }

        public static IJobPersonWorkDao personWorkDao
        {
            get { return container["personWorkDao"] as IJobPersonWorkDao; }
        }

        public static IJobPositionInfoDao positionInfoDao
        {
            get { return container["positionInfoDao"] as IJobPositionInfoDao; }
        }
        public static IJobPersonTranDao personTranDao
        {
            get { return container["personTranDao"] as IJobPersonTranDao; }
        }

        public static IJobCompanySearcherDao companySearcherDao
        {
            get { return container["companySearcherDao"] as IJobCompanySearcherDao; }
        }

        public static IJobPersonAccountDao personAccountDao
        {
            get { return container["personAccountDao"] as IJobPersonAccountDao; }
        }

        public static IJobPerson1SearcherDao person1SearcherDao
        {
            get { return container["person1SearcherDao"] as IJobPerson1SearcherDao; }
        }

        public static IJobPersonAdvanceDao personAdvanceDao
        {
            get { return container["personAdvanceDao"] as IJobPersonAdvanceDao; }
        }

        public static IJobPersonCertifyDao personCertifyDao
        {
            get { return container["personCertifyDao"] as IJobPersonCertifyDao; }
        }

        public static IJobPersonProjectDao personProjectDao
        {
            get { return container["personProjectDao"] as IJobPersonProjectDao; }
        }

        public static IJobPersonSkillDao personSkillDao
        {
            get { return container["personSkillDao"] as IJobPersonSkillDao; }
        }

        public static IJobPersonFavoritesDao personFavoritesDao
        {
            get { return container["personFavoritesDao"] as IJobPersonFavoritesDao; }
        }

        public static IJobSendResumeDao sendResumeDao
        {
            get { return container["sendResumeDao"] as IJobSendResumeDao; }
        }

        public static IJobAdvanceCustomerDao advanceCustomerDao
        {
            get { return container["advanceCustomerDao"] as IJobAdvanceCustomerDao; }
        }
    }
}
